package com.designpattern.proxy.demo3;

public class Client {
    public static void main(String[] args) {
        Host host = new Host();
//        代理角色：现在没有
        ProxyInvocationHandler invocationHandler = new ProxyInvocationHandler();
        invocationHandler.setRent(host);
        Rent proxy = (Rent)invocationHandler.getProxy();
        proxy.rent();
    }
}
